package com.qingneng.budget.service.sdk.impl;

import java.util.List;
import java.util.Map;


import com.qingneng.budget.dao.IContractInfoDao;
import com.qingneng.budget.service.sdk.IContractInfoService;
import com.qingneng.budget.vo.ContractInfo;

public class ContractInfoServiceImpl implements IContractInfoService{
	
	private IContractInfoDao contractInfoDao = null;


	public IContractInfoDao getContractInfoDao() {
		return contractInfoDao;
	}

	public void setContractInfoDao(IContractInfoDao contractInfoDao) {
		this.contractInfoDao = contractInfoDao;
	}

	public List getContractInfo(ContractInfo contractInfo ) {
		return contractInfoDao.queryContractInfo( contractInfo );
	}

	public Integer  getContractInfoTotalCount() throws Exception {
		return contractInfoDao.queryTotalCount();
	}

	public void addContractInfo(ContractInfo bean) throws Exception {
		 contractInfoDao.insertContractInfo(bean);
	}

	public void destoryContractInfo(ContractInfo bean) throws Exception {
		contractInfoDao.deleteContractInfo(bean);
		
	}

	public void modifyContractInfo(ContractInfo bean) throws Exception {
		contractInfoDao.update(bean);
		
	}

	public List getContractInfo() throws Exception {
		// TODO Auto-generated method stub
		return contractInfoDao.queryContractInfo( );
	}

	public Integer getContractInfoTotalCount(ContractInfo contractInfo) {
		// TODO Auto-generated method stub
		return contractInfoDao.queryTotalCount(contractInfo);
	}

	public List getMainContractInfo(ContractInfo contractInfo) {
		// TODO Auto-generated method stub
		return contractInfoDao.queryMainContractInfo(contractInfo);
	}

	public List getContractInfoAduit(Map paramMap) {
		// TODO Auto-generated method stub
		return contractInfoDao.getContractInfoByStatus(paramMap);
	}


	

}
